<!DOCTYPE html><html><head><meta charset=utf-8><title>H3DU.TextureInfo</title></head><body><h1> H3DU.TextureInfo</h1><p><a href='index.html'>Back to documentation index.</a></p><a name='H3DU.TextureInfo'></a>
<h3> H3DU.TextureInfo([params])</h3>Specifies information about a texture, which can serve as image data applied to
the surface of a shape, or even a 2-dimensional array of pixels
used for some other purpose, such as a depth map, a height map,
a bump map, a specular map, and so on.<p>
By default, texture coordinates go from (0,0) at the lower left corner
to (1,1) at the upper right corner (because the "topDown" property is false
by default).<p>
For best results, any textures to be used in WebGL should have
width and height each equal to a power of 2, such as 2, 4, 8, 16,
and 32.<h4> Parameters</h4><ul><li><code>params</code> (Type: Object) (optional)<br>An object as described in H3DU.TextureInfo.setParams.</ul><h3> Methods</h3><ul><li><a href='#H3DU.TextureInfo_copyFrom'>copyFrom</a><br>Copies the parameters from another texture information object to this
object.<li><a href='#H3DU.TextureInfo_setParams'>setParams</a><br>Sets parameters for this texture information object.</ul><a name='H3DU.TextureInfo_copyFrom'></a>
<h3> H3DU.TextureInfo#copyFrom([other])</h3>Copies the parameters from another texture information object to this
object.<h4> Parameters</h4><ul><li><code>other</code> (Type: <a href="H3DU.TextureInfo.html">H3DU.TextureInfo</a>) (optional)<br>Texture information object to copy.</ul><h4> Return Value</h4>This object. (Type: <a href="H3DU.TextureInfo.html">H3DU.TextureInfo</a>)<a name='H3DU.TextureInfo_setParams'></a>
<h3> H3DU.TextureInfo#setParams(params)</h3>Sets parameters for this texture information object.<h4> Parameters</h4><ul><li><code>params</code> (Type: Object)<br>An object whose keys have the possibilities given below, and whose values are those allowed for each key.<ul> <li><code>uri</code> - URI (Internet address) of the texture's data. <li><code>format</code> - Specifies the kind of data stored in each pixel of the texture. Can be 6406, 6407, 6408 (RGBA), 6409, 6410. <li><code>internalFormat</code> - Specifies the format of the texture. Can be one of the values for "format". <li><code>target</code> - Specifies the texture target. Can be 3553 (TEXTURE_2D). <li><code>type</code> - Specifies the data type used to encode each pixel component in the texture. Can be 5121, 33635, 32819, 32820. <li><code>magFilter</code> - Specifies the filter to use when enlarging the texture. Can be 9728 (NEAREST) or 9729 (LINEAR). <li><code>minFilter</code> - Specifies the filter to use when shrinking the texture. Can be one of the values for "magFilter" or 9984, 9985, 9986 (NEAREST_MIPMAP_LINEAR), 9987. <li><code>wrapS</code> - Specifies the wrapping mode in the S (horizontal) axis. Can be 10497 (REPEAT), 33071, 33648. <li><code>wrapT</code> -Specifies the wrapping mode in the T (horizontal) axis. Can be one of the values for "wrapS". <li><code>topDown</code> - If true, the image's data will be stored starting from the top row and proceeding downwards. </ul> Any or all of these keys can exist in the parameters object. If a value is null or undefined, it is ignored unless otherwise noted.</ul><h4> Return Value</h4>This object. (Type: <a href="H3DU.TextureInfo.html">H3DU.TextureInfo</a>)<p><a href='index.html'>Back to documentation index.</a></p></body></html>
